package entity

type Option struct {
	Id           int64  `gorm:"column:id;primary_key" json:"id"`
	TitleId      int64  `gorm:"column:title_id;type:bigint;not null" json:"title_id"`
	Image        string `gorm:"column:image;type:varchar(255);not null" json:"image"`
	Desc         string `gorm:"column:desc;type:varchar(255);not null" json:"desc"`
	AnalysisText string `gorm:"column:analysis_text;type:varchar(255);not null" json:"analysis_text"`
	AnalysisImg  string `gorm:"column:analysis_img;type:varchar(255);not null" json:"analysis_img"`
	CreatedAt    int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt    int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (o *Option) TableName() string {
	return "options"
}
